default: main

main: main.o monitorsstf.o request.o logger.o
	g++ bin/main.o bin/monitorsstf.o bin/request.o bin/logger.o -o main.prog -lpthread

main.o:
	g++ -c src/main.cpp -o bin/main.o

monitorsstf.o:
	g++ -c src/monitorsstf.cpp -o bin/monitorsstf.o

request.o: logger.o
	g++ -c src/request.cpp -o bin/request.o
	
logger.o:
	g++ -c src/logger.cpp -o bin/logger.o

clean:
	rm *.log
	rm bin/*.o
	rm *.prog
